package com.zyw.common;

public enum RespCode {
	OK(10000, "OK", "请求成功"), 
	ERROR(-1, "ERROR", "请求失败"), 
	ERR_400(27400, "ERR-400", "缺少必须参数"),
	ERR_401(27401, "ERR-401", "请求要求身份验证"),
	ERR_403(27403, "ERR-403", "服务器拒绝请求"),
	ERR_404(27404, "ERR-404", "请求资源路径不存在"),
	ERR_405(27405, "ERR-405", "请求方法不支持"),
	ERR_408(27408, "ERR-408", "服务器等候请求时发生超时"),
	ERR_413(27413, "ERR-413", "请求体过大"),
	ERR_500(27500, "ERR-500", "服务器内部错误"),
	ERR_501(27501, "ERR-501", "请求方法未实现"),
	ERR_503(27503, "ERR-503", "请求接口超过调用频率限制"),
	ERR_999(27999, "ERR-999", "请求接口校验不通过"),
	ERR_40001(40001, "ERR-40001", "不合法的参数"),
	ERR_4011(4011, "ERR-4011","未授权：登录失败"),
	ERR_4013(4013, "ERR-4013","未授权：ACL禁止访问资源"),
	ERR_INCORRECT_ACCOUNT(40002, "IncorrectAccount", "用户名/密码不正确"),
	ERR_LOCKED_ACCOUNT(40003, "LockedAccount", "用户已被锁定"),
	ERR_ROLE_ID(40004, "roloIdErr", "角色编号有误");

	private Integer id;
	private String code;
	private String desc;

	private RespCode(Integer id, String code, String desc) {
		this.id = id;
		this.code = code;
		this.desc = desc;
	}

	public Integer getId() {
		return id;
	}

	public String getCode() {
		return code;
	}

	public String getDesc() {
		return desc;
	}
	
}
